<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Line_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-line_id" data-rule="required" data-source="car/line/show" class="form-control selectpage" name="row[line_id]" data-field="name" type="text" value="{$row.line_id}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Start_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-start_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[start_time]" type="text" value="{$row.start_time|datetime}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('End_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-end_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[end_time]" type="text" value="{$row.end_time|datetime}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Stop_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-stop_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[stop_time]" type="text" value="{$row.stop_time|datetime}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Passenger_true')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-passenger_true" class="form-control" name="row[passenger_true]" type="number" value="{$row.passenger_true}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Seat_info')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:Form::fieldlist('row[seat_info]', $row['seat_info'], null, '', ['data-rule'=>'required'])}
            <!--<input id="c-seat_info" class="form-control" name="row[seat_info]" type="text" value="{$row.seat_info}">-->
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Carinfo_id')}:</label>
        <div class="col-xs-12 col-sm-8">

            <!--<input type="text" class="form-control selectpage" data-source="carinfo/index" placeholder="选则司机" data-field="car_name" name="row[carinfo_id]" value="{$row.carinfo_id}"/>-->
            <input id="c-carinfo_id" data-rule="required" data-source="car/carinfo/index" class="form-control selectpage" name="row[carinfo_id]" data-field="car_number" type="text" data-init="{$row.carinfo_id}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Dri_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <!--&lt;!&ndash;{:Form::selectpages('row[dri_id]','car/driver/dir', 'evaluate', 'id', ['data-rule'=>'required'])}&#45;&#45;-->
            <input id="c-dri_id" data-rule="required" data-source="car/driver/index" class="form-control selectpage" name="row[dri_id]"  data-field="uid" type="text" data-init="{$row.dri_id}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <!--<div class="col-xs-12 col-sm-8">-->
            <!---->
            <!--{:Form::switcher('row[status]', '1', ['color'=>'success'])}-->
            <!--&lt;!&ndash;<input id="c-status" class="form-control" name="row[status]" type="text" value="{$row.status}">&ndash;&gt;-->
        <!--</div>-->

        <div class="radio">
            {foreach name="stateList" item="vo"}
            <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="$row.status"}checked{/in} /> {$vo}</label>
            {/foreach}
        </div>

    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Remarks')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:Form::textarea('row[remarks]', $row['remarks'])}
            <!--<input id="c-remarks" class="form-control" name="row[remarks]" type="text" value="{$row.remarks}">-->
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
